package za.org.jcicada.katcp;

/**
 * StrategyEvent.java
 *
 * @author Simon Cross
 * @author Adrianna Pinska
 *
 * Created on October 30, 2008, 16:27
 */

import za.org.jcicada.katcp.ISamplingStrategy;
import za.org.jcicada.katcp.StrategyBase;

/**
 * A strategy which samples whenever the sensor value changes.
 */
public class StrategyEvent
extends StrategyBase {

    /**
     * Constructs a StrategyEvent object.
     *
     * @param params  Should contain no parameters.
     */
    public StrategyEvent(String[] params) {
        super(ISamplingStrategy.Strategy.EVENT, params);
        if (params.length != 0) {
            throw new IllegalArgumentException("The 'event' sampling strategy takes no parameters.");
        }
    }

}
